<?php
/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class UrlHelper
{
	public static function productDetail($productId, $layout = '')
	{
		return Yii::app()->createUrl('products/show', array('id' => $productId, 'layout'=>$layout));
    }
    public static function productImage($imageUrl) 
	{
		return Yii::app()->request->baseUrl.$imageUrl;
    }
}